<html>
<head><meta charset="utf-8"><title>build pipelining outside of cargo · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html">build pipelining outside of cargo</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="186940911"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186940911" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186940911">(Jan 29 2020 at 23:45)</a>:</h4>
<p>I'm experimenting with build pipelining in the fuchsia build</p>



<a name="186940984"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186940984" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186940984">(Jan 29 2020 at 23:46)</a>:</h4>
<p>is <code>--emit=metadata</code> output sufficient for this, or is there another magic flag that makes the rmeta "more complete"?</p>



<a name="186941010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941010">(Jan 29 2020 at 23:46)</a>:</h4>
<p>I'm getting unexpected errors now that I produce rmeta files</p>



<a name="186941181"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941181" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941181">(Jan 29 2020 at 23:49)</a>:</h4>
<p>I believe it should be, but I'm not sure that the compiler expects that exactly</p>



<a name="186941200"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941200" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941200">(Jan 29 2020 at 23:49)</a>:</h4>
<p>it might help to tell the compiler to emit the "okay metadata is done now" message</p>



<a name="186941278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941278">(Jan 29 2020 at 23:50)</a>:</h4>
<p>(I forget how to do that, but either grepping Cargo source for pipelining or trying a cargo build should work). IIRC, it's something like <code>--json artifact-notifications</code>, but I could be wrong.</p>



<a name="186941288"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941288" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941288">(Jan 29 2020 at 23:50)</a>:</h4>
<p>so, the main thing I'm doing differently is I'm not emitting the rlib in the same invocation</p>



<a name="186941295"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186941295" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186941295">(Jan 29 2020 at 23:50)</a>:</h4>
<p>I suspect this is causing the rmeta file to be incomplete somehow</p>



<a name="186942106"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186942106" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186942106">(Jan 30 2020 at 00:00)</a>:</h4>
<p>hm, perhaps, but I would expect no</p>



<a name="186942114"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186942114" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186942114">(Jan 30 2020 at 00:01)</a>:</h4>
<p>(in theory you can check)</p>



<a name="186942218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186942218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186942218">(Jan 30 2020 at 00:02)</a>:</h4>
<p>i.e., an rlib is I believe an <code>ar</code> archive so you can pull out the rmeta and diff them</p>



<a name="186942235"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186942235" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186942235">(Jan 30 2020 at 00:02)</a>:</h4>
<p>What errors are you getting?</p>



<a name="186947616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947616">(Jan 30 2020 at 01:34)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> sorry, got sidetracked</p>



<a name="186947646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947646">(Jan 30 2020 at 01:35)</a>:</h4>
<p>there are multiple issues, and one of them that is preventing me from making progress</p>



<a name="186947650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947650">(Jan 30 2020 at 01:35)</a>:</h4>
<p>is that <code>--emit=metadata=&lt;path&gt;</code> is not respected</p>



<a name="186947703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947703">(Jan 30 2020 at 01:36)</a>:</h4>
<p>(the other issues I know of are my fault, but they muddy the waters on the original question)</p>



<a name="186947717"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947717" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947717">(Jan 30 2020 at 01:36)</a>:</h4>
<p>anyway, <code>--emit=metadata</code> seems hardcoded to emit <code>./&lt;crate_name&gt;.rmeta</code></p>



<a name="186947744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186947744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186947744">(Jan 30 2020 at 01:37)</a>:</h4>
<p>there might be ways of working around this on my end, but it's probably not worth it for an experiment</p>



<a name="186948209"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186948209" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186948209">(Jan 30 2020 at 01:47)</a>:</h4>
<p>oh, I don't think that works for anything?</p>



<a name="186948218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186948218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186948218">(Jan 30 2020 at 01:47)</a>:</h4>
<p>i.e., <code>--emit=metdata=path</code> is not a supported syntax?</p>



<a name="186948222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186948222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186948222">(Jan 30 2020 at 01:47)</a>:</h4>
<p>maybe <code>-o</code> does, but I don't think</p>



<a name="186948530"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186948530" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186948530">(Jan 30 2020 at 01:53)</a>:</h4>
<p>but if the hardcoding is a concern, then yeah, that might not be avoidable, not sure</p>



<a name="186983937"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186983937" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186983937">(Jan 30 2020 at 13:11)</a>:</h4>
<blockquote>
<p>i.e., <code>--emit=metdata=path</code> is not a supported syntax?</p>
</blockquote>
<p>Yeah, I don’t believe this is a syntax we support, although maybe something has changed? Definitely looks unusual.</p>



<a name="186984013"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186984013" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186984013">(Jan 30 2020 at 13:12)</a>:</h4>
<p>For pipelining I believe you also need to consume the json output as that has signals that indicate when something gets done</p>



<a name="186985234"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186985234" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186985234">(Jan 30 2020 at 13:24)</a>:</h4>
<p>(I think <span class="user-mention" data-user-id="116883">@tmandry</span> is trying "precompiled" pipelining, i.e., that the rmetas are already available way ahead of time)</p>



<a name="186985269"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/186985269" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#186985269">(Jan 30 2020 at 13:24)</a>:</h4>
<p>I have wondered if we could make <code>cargo build</code> kick off all dependencies at the same time if you already had a <code>cargo check</code> previously completed (common case, realistically)</p>



<a name="187025801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187025801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187025801">(Jan 30 2020 at 20:11)</a>:</h4>
<p>we support it for dep-info: <code>--emit=def-info=&lt;path&gt;</code></p>



<a name="187025822"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187025822" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187025822">(Jan 30 2020 at 20:11)</a>:</h4>
<p>and when I have that, plus <code>--emit=link</code>, plus <code>-o</code>, I get a warning</p>



<a name="187030642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187030642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187030642">(Jan 30 2020 at 21:07)</a>:</h4>
<p>okay I got it running, I think it had to do with the order of args</p>



<a name="187030700"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187030700" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187030700">(Jan 30 2020 at 21:08)</a>:</h4>
<p>hitting an ICE now <span aria-label="grimacing" class="emoji emoji-1f62c" role="img" title="grimacing">:grimacing:</span></p>



<a name="187030753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187030753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187030753">(Jan 30 2020 at 21:09)</a>:</h4>
<blockquote>
<p>(I think <span class="user-mention silent" data-user-id="116883">tmandry</span> is trying "precompiled" pipelining, i.e., that the rmetas are already available way ahead of time)</p>
</blockquote>
<p>I'm actually experimenting with doing the work twice, in a large build, in an environment with high parallelism</p>



<a name="187030789"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187030789" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187030789">(Jan 30 2020 at 21:09)</a>:</h4>
<p>i.e. spawning off <code>--emit=metadata</code> and <code>--emit=link</code> jobs simultaneously</p>



<a name="187030807"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187030807" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187030807">(Jan 30 2020 at 21:09)</a>:</h4>
<p>no idea if it will be better, though</p>



<a name="187032836"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187032836" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187032836">(Jan 30 2020 at 21:27)</a>:</h4>
<p>I would expect that to be strictly worse, but who knows :)</p>



<a name="187276584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187276584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187276584">(Feb 03 2020 at 16:14)</a>:</h4>
<p>--emit THING=PATH is definitely a syntax that is supported. It looks like <code>metadata</code> is the only one that doesn't respect it, and I would say that is a bug (or at least it should be a warning/error if you specify it).</p>
<p>As for the original question, I'm pretty sure you need to include <code>link</code> to get a compatible <code>rmeta</code> file. Maybe nnethercote knows why?</p>



<a name="187683780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187683780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187683780">(Feb 07 2020 at 21:52)</a>:</h4>
<p>From the ICE I'm seeing, it seems like the rmeta does not include MIR for generic functions</p>



<a name="187683786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/187683786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#187683786">(Feb 07 2020 at 21:52)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="120989">@Nicholas Nethercote</span></p>



<a name="191531203"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/build%20pipelining%20outside%20of%20cargo/near/191531203" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/build.20pipelining.20outside.20of.20cargo.html#191531203">(Mar 23 2020 at 20:23)</a>:</h4>
<blockquote>
<p>From the ICE I'm seeing, it seems like the rmeta does not include MIR for generic functions</p>
</blockquote>
<p>if you're not passing <code>--emit=link</code> it's possible the <code>rmeta</code> is for <code>cargo check</code> purposes only</p>
<p>(sorry, came across this almost two months later)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>